package com.exartisan.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class GalleryContent implements Parcelable {
	private int contentID;
	private String resourceUrl;
	private String thumbUrl;
	private String description;
	private String DateCreate;
	private String title;
	private String FeedID;
	private String Avatar;
	private String FullName;
	private int type; //1: image | 2: video
	private boolean Liked;

	public static final Parcelable.Creator<GalleryContent> CREATOR = new Parcelable.Creator<GalleryContent>() {
		public GalleryContent createFromParcel(Parcel in) {
			return new GalleryContent(in);
		}

		public GalleryContent[] newArray(int size) {
			return new GalleryContent[size];
		}
	};


	public GalleryContent(int contentID, String resourceUrl,
			String description, String title, int type) {
		this.contentID = contentID;
		this.resourceUrl = resourceUrl;
		this.description = description;
		this.title = title;
		this.type = type;
	}
	
	public GalleryContent(int contentID, String resourceUrl,
			String description, String title,String thumbUrl, int type) {
		this.contentID = contentID;
		this.resourceUrl = resourceUrl;
		this.description = description;
		this.title = title;
		this.type = type;
		this.thumbUrl = thumbUrl;
	}

	public int getContentID() {
		return contentID;
	}

	public void setContentID(int contentID) {
		this.contentID = contentID;
	}

	public String getThumbUrl() {
		return thumbUrl;
	}

	public void setThumbUrl(String thumbUrl) {
		this.thumbUrl = thumbUrl;
	}

	public String getResourceUrl() {
		return resourceUrl;
	}

	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}


	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
	
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getDateCreate() {
		return DateCreate;
	}

	public void setDateCreate(String dateCreate) {
		DateCreate = dateCreate;
	}

	public String getFeedID() {
		return FeedID;
	}

	public void setFeedID(String feedID) {
		FeedID = feedID;
	}

	public String getAvatar() {
		return Avatar;
	}

	public void setAvatar(String avatar) {
		Avatar = avatar;
	}

	public String getFullName() {
		return FullName;
	}

	public void setFullName(String fullName) {
		FullName = fullName;
	}

	@Override
	public int describeContents() {
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(contentID);
		dest.writeString(resourceUrl);
		dest.writeString(description);
		dest.writeString(FeedID);
		dest.writeInt(type);
	}

	private GalleryContent(Parcel in) {
		contentID = in.readInt();
		resourceUrl = in.readString();
		description = in.readString();
		FeedID = in.readString();
		type = in.readInt();
	}

	public boolean isLiked() {
		return Liked;
	}

	public void setLiked(boolean liked) {
		Liked = liked;
	}


}
